package com.wzg.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 微信信息表
 * </p>
 *
 * @author wzg
 * @since 2020-01-12
 */
public class TWechat implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 微信unionid
     */
    private String unionid;

    /**
     * 绑定用户的id
     */
    @TableField("userId")
    private Integer userId;

    /**
     * 公众号标识
     */
    private String app;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 微信返回的性别
     */
    private String sex;

    /**
     * 微信返回的省
     */
    private String province;

    /**
     * 微信返回的城市
     */
    private String city;

    /**
     * 微信返回的国家
     */
    private String country;

    /**
     * 微信头像
     */
    private String headimgurl;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("updateTime")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TWechat{" +
        "id=" + id +
        ", openid=" + openid +
        ", unionid=" + unionid +
        ", userId=" + userId +
        ", app=" + app +
        ", nickname=" + nickname +
        ", sex=" + sex +
        ", province=" + province +
        ", city=" + city +
        ", country=" + country +
        ", headimgurl=" + headimgurl +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
